﻿@{
    Layout = "~/Areas/CPP/Views/Shared/_MasterLayout.cshtml";
    var company = ViewBag.Company as CompanyInfo;
}
@section head{
<link href="/Areas/CPP/Content/default.scrolltop.min.css" rel="stylesheet" />
}
@model PagedList<PhotoInfo>
@{ Html.RenderAction("CLeft", "CCompany", new { cid = company.CompanyID });}

<div class="sy_center">
    <div class="pro_list2">
        <div class="pro_kuang">
            <div class="jjtiao">
                <div class="jjtext">图片列表 </div>
            </div>
            <div class="jjkuang">
                @{
                    foreach (var item in Model)
                    {
                    <div class="product_item">
                        <div class="product_item_img">
                            <a href="@Url.Action("CPhoto","CCompany")?cid=@company.CompanyID&pid=@item.PhotoId">
                                <img alt="@item.PhotoTitle" src="@item.PhotoUrl" /></a>
                        </div>
                        <div class="product_item_title">
                            <a href="@Url.Action("CPhoto","CCompany")?cid=@company.CompanyID&pid=@item.PhotoId" 
                                title="@item.PhotoTitle">@item.PhotoTitle.Trim(11)</a>
                        </div>
                    </div>
                    }
                }

            </div>
        </div>
        <div class="pro_kuang">
            <div id="sw_mod_pagination" class="sw-mod-pagination sw-layout-mod">
                <div class="pagination">
                    @Html.Pager(Model, new Webdiyer.WebControls.Mvc.PagerOptions()
                        {
                            PageIndexParameterName = "page",
                            NumericPagerItemCount = 9,
                            AutoHide = true,
                            CssClass = "page-bottom",
                            CurrentPagerItemWrapperFormatString = "<span class='page-cur'>{0}</span>",
                            //NumericPagerItemWrapperFormatString = "<span class='page_items'>{0}</span>",
                            //PagerItemWrapperFormatString = "<span class='page_items'>{0}</span>",
                            //NavigationPagerItemWrapperFormatString = "<span class='page_items'>{0}</span>",
                            SeparatorHtml = "",
                            ContainerTagName = "div",
                            ShowFirstLast = false,
                            //ShowGoButton = true,
                            //ShowPageIndexBox = true,
                            // PageIndexBoxWrapperFormatString = "<span class='total-page'>共" + Model.TotalPageCount + "页</span> 到第 {0} 页  ",    
                            //GoToPageSectionWrapperFormatString=" <div class=\"page-op\">{0}</div>", GoButtonText = "确定"

                        })
                    <script type="text/javascript">
                        $(function () {
                            $(".page-bottom a").filter(function (index) {
                                return $(this).text() == "下一页";
                            }).addClass("page-next");
                        });
                    </script>
                </div>
            </div>
        </div>
    </div>
</div>
